package dup.login.demo.domain;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class DateFormat {
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return date;
    }
}
